using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Test1 : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        // 就是hierarchy窗口中显示的名称 
        Debug.Log(this.gameObject.name);

        // 获取transform脚本的位置信息
        // 下面的两行代码是等价的
        Debug.Log(this.transform.position);
        Debug.Log(this.gameObject.transform.position);

        // 获取transform组件的欧拉角度
        Debug.Log(this.transform.eulerAngles);
        Debug.Log(this.gameObject.transform.eulerAngles);

        // 获取transform组件的缩放信息
        Debug.Log(this.transform.localScale);
        Debug.Log(this.gameObject.transform.localScale);
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
